<include file="Common/common" />
<?php $typeArr = array('1'=>'+','2'=>'-'); ?>

<body>
	<div class="layui-tab-item layui-show">
		<div class="layui-main">
			<br>
			<form class="layui-form" action="{:U('/admin.php/Record/trading')}" method="post">
				<div class="layui-form-item">
					<label class="layui-form-label">搜索</label>
					<div class="layui-input-inline" id="div-nickname">
						<input type="text" placeholder="请输入用户账号" name="account" lay-verify="required"  class="layui-input" >
					</div>


					<div class="layui-input-inline">
						<button class="layui-btn" title="搜索" ><i class="layui-icon">&#xe615;</i></button>
					</div>
				</div>
			</form>
			<br>
			<div style="overflow-x: auto;">
				<table class="layui-table" >
					<thead>
						<tr>
							<th>编号</th>
							<th>用户</th>
							<th>交易金额</th>
							<th>手续费</th>
							<th>交易前余额</th>
							<th>交易后余额</th>
							<th>交易时间</th>
							<th>备注</th>
						</tr> 
					</thead>
					<tbody>
						<foreach name="tradingList" item="vo">
							<tr>
								<td>{$vo['order']}</td>
								<td>{$vo['account']}</td>
								<td>{$typeArr[$vo['type']]}{$vo['money']}</td>
								<td>{$vo['poundage']}%</td>
								<td>{$vo['old_money']}</td>
								<td>{$vo['new_money']}</td>
								<td><?php echo date('Y-m-d H:i:s',$vo['createtime']);?></td>
								<td>{$vo['remark']}</td>
							</tr>
						</foreach>
					</tbody>
				</table>
			</div>
			<div class="green-black">{$page}</div>
		</div>
	</div>
</body>

<include file="Common/footer" />